package work30.a;

/**
 * 交警类
 */
public class Traffic {
    //名字
    public String name;
    //年龄
    public int age;

    //空方法
    public Traffic() {

    }

    public Traffic(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void let(Car car, Manage manage) {
        System.out.println(this.name + "让" + car.size + manage.act);
    }

    public static void main(String[] args) {
        Traffic traffic = new Traffic("程警官", 20);
        Car car = new Car("小白车");
        Manage manage = new Manage("停止");
        traffic.let(car, manage);

    }
}
